/**
 * Project Name:mbr-comm
 * File Name:AppConstants.java
 * Package Name:com.aeye.mbr.common.base.constants
 * Date:2015年8月21日上午10:18:33
 * Copyright (c) 2015, shengpeng@a-eye.cn All Rights Reserved.
 *
*/

package com.aeye.mbr.common.base.constants;
/**
 * ClassName:AppConstants <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2015年8月21日 上午10:18:33 <br/>
 * @author   shengpeng
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public enum App {
	PT(0,"管理平台"),
	QYYL(1,"企业养老"),
	JGYL(2,"机关养老"),
	JMYL(3,"城乡居民养老"),
	SY(4,"失业保险"),
	GS(5,"工伤保险"),
	SYU(6,"生育保险"),
	YB(7,"医保"),
	YDXC(8,"异地协查"),
	JZG(9,"军转干"),
	EDU(10,"教育"),
	YB2(11,"医保2.0"),
	ZZ(12,"资助"),
	F310(50,"F310服务终端"),
	P310(51,"P310服务终端"),
	CJ(99,"采集");
	private App(int code,String name){
		this.code = code;
		this.name = name;
	}
	
	int code;
	String name;
	public int getCode() {
		return code;
	}
	public String getName() {
		return name;
	}
	
	public static App init(int code){
		for(App app : values()){
			if(app.getCode() == code){
				return app;
			}
		}
		return PT;
	}
}

